#include "AerobicDevice.h"

AerobicDevice::AerobicDevice(const char * n,int calories) : 
Device(n) , avgCalories(calories)
{


}

ostream & operator<<(ostream & os,const AerobicDevice & D) //#WD[3] RonnyR 12.12
{
os<<(Device&)D<<" (Aerobic Device) , ";
os<<"Number Of Caloroes: "<<D.avgCalories<<endl;
return os;
}
void AerobicDevice::setAvgCalories(int avg)
{
	avgCalories = avg;
}

Device * AerobicDevice::Clone() const
{

return new AerobicDevice(*this);
}

void AerobicDevice::showSafetyInstructions() const
{


}

istream & operator>>(istream & in,AerobicDevice & D)
{
in>>(Device&)D;
return in;	
}
void AerobicDevice::PrintDevice(ostream & os) const
{
os<<*this;
}

